package com.collectplus.express.model;

/**
 * 邮票
 *
 * @author coffee<br>
 * 2015-7-3上午9:47:15
 */
public class CouponBean implements java.io.Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -2548537187698389149L;

    private int id;
    // 1 寄包裹、2收包裹邮票
    private int businessType;
    //
    private String typeName;
    private int type;// 邮票类型 3 13 14 22同城的邮票  1  2  11 12 21上门的
    private long usefulDate;// 到期时间
    private String cheapValue;// 优惠的金额
    private String conditionValue;// 满减
    private String description;// 邮票描述

    // 下面字段为邮票商城需求添加的字段

    /**
     * isUse：1 可用 2 已使用 3 已经过期
     */
    private int isUse = 1; // 使用状态
    private String name;// 邮票名称
    private String condition;
    private String expireDate;
    private String image;
    private String code;
    private String series;
    private String stampNum;
    private String stampOrderId;
    private String validStart;//有效期开始
    private String validEnd;//有效期结束

    //支付界面使用
    private String expireRemain;//剩余天数
    private String stampName;//邮票名称
    private String stampImage;//邮票图片
    private int parcelCount;//包裹数量
    private int stampType;//邮票类型  >=11&&<20 属于折扣  >=21属于优惠券
    private double stampValue;//邮票价格

    private int transferFlag;//0：不可转赠，1：可转赠
    private String stampFrom;//邮票来源
    private String createTime;//获得时间

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public String getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(String expireDate) {
        this.expireDate = expireDate;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    public String getStampNum() {
        return stampNum;
    }

    public void setStampNum(String stampNum) {
        this.stampNum = stampNum;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIsUse() {
        return isUse;
    }

    public void setIsUse(int isUse) {
        this.isUse = isUse;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public long getUsefulDate() {
        return usefulDate;
    }

    public void setUsefulDate(long usefulDate) {
        this.usefulDate = usefulDate;
    }

    public String getCheapValue() {
        return cheapValue;
    }

    public void setCheapValue(String cheapValue) {
        this.cheapValue = cheapValue;
    }

    public String getConditionValue() {
        return conditionValue;
    }

    public void setConditionValue(String conditionValue) {
        this.conditionValue = conditionValue;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    public int getBusinessType() {
        return businessType;
    }

    public void setBusinessType(int businessType) {
        this.businessType = businessType;
    }

    public String getStampOrderId() {
        return stampOrderId;
    }

    public void setStampOrderId(String stampOrderId) {
        this.stampOrderId = stampOrderId;
    }

    public String getExpireRemain() {
        return expireRemain;
    }

    public void setExpireRemain(String expireRemain) {
        this.expireRemain = expireRemain;
    }

    public String getStampName() {
        return stampName;
    }

    public void setStampName(String stampName) {
        this.stampName = stampName;
    }

    public String getStampImage() {
        return stampImage;
    }

    public void setStampImage(String stampImage) {
        this.stampImage = stampImage;
    }

    public int getParcelCount() {
        return parcelCount;
    }

    public void setParcelCount(int parcelCount) {
        this.parcelCount = parcelCount;
    }

    public int getStampType() {
        return stampType;
    }

    public void setStampType(int stampType) {
        this.stampType = stampType;
    }

    public double getStampValue() {
        return stampValue;
    }

    public void setStampValue(double stampValue) {
        this.stampValue = stampValue;
    }

    public String getValidStart() {
        return validStart;
    }

    public void setValidStart(String validStart) {
        this.validStart = validStart;
    }

    public String getValidEnd() {
        return validEnd;
    }

    public void setValidEnd(String validEnd) {
        this.validEnd = validEnd;
    }

    public boolean isTransferFlag() {
        return transferFlag == 1;
    }

    public void setTransferFlag(int transferFlag) {
        this.transferFlag = transferFlag;
    }

    public boolean isSameCityStamp() {
        //3 13 14 22
        if (type == 3 || type == 13 || type == 14 || type == 22) {
            return true;
        } else {
            return false;
        }
    }

    public String getStampFrom() {
        return stampFrom;
    }

    public void setStampFrom(String stampFrom) {
        this.stampFrom = stampFrom;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "CouponBean [id=" + id + ", businessType=" + businessType + ", typeName=" + typeName + ", isUse=" + isUse + ", type=" + type + ", name=" + name + ", usefulDate=" + usefulDate
                + ", cheapValue=" + cheapValue + ", conditionValue=" + conditionValue + ", description=" + description + "]";
    }

}
